var currentPage = 1;

function onload(){
	gotoPage(currentPage)
}

function thisSWF(mediaName){
	if(navigator.appName.indexOf("Microsoft")!= -1){
		return window[mediaName];
	}else{
		return document[mediaName];
	}
}
function getMedia(){
	return thisSWF("swfMedia");
}
function loadSoundHander(url,newSoundFinishHander){
	loadItv =setInterval(function(){loadSound(url)},100);
	soundFinishHander = newSoundFinishHander;
}
function soundFinishHander(){
	
}
function loadSound(url){
	if(getMedia() == null)return;
	getMedia().loadSound(url)
	clearInterval(loadItv);
}

function gotoPage(num){
	currentPage = num;
	outStr = '<iframe id="content" src="'+ pageArr[num] +'" style="width:636px; height:270px; overflow:hidden;" frameborder="0" ></iframe>'
	$("#t2_2").html(outStr);
}